%% Author: OSEA
%% Created: 2011 8 28
%% Description: TODO: Add description to helloworld
-module(helloworld).

%%
%% Include files
%%

%%
%% Exported Functions
%%
-export([sayhello/1, fac/1, list_length/1]).

%%
%% API Functions
%%

%%
%% Local Functions
%%
sayhello(A) 
  -> A * 2.

fac(1)
  -> 1;
fac(N)
  -> N * fac(N-1).

list_length([])
  -> 0;
list_length([First | Rest])
  -> 1+list_length(Rest). 
